using DevExpress.XtraEditors;
using DevExpress.XtraEditors.DXErrorProvider;
using CSW.Framework.UI.DevEx.Binding;

namespace CSW.Framework.UI.DevEx.Forms
{
    /// <summary>
    /// Base Edit Record Form.
    /// </summary>
    public partial class DXBaseEditForm : XtraForm
    {
        /// <summary>
        /// The <see cref="DXError"/> which wraps the <see cref="DXErrorProvider"/>.
        /// </summary>
        protected readonly DXError dxError;

        /// <summary>
        /// Initializes a new instance of the <see cref="DXBaseEditForm"/> class.
        /// </summary>
        public DXBaseEditForm()
        {
            InitializeComponent();

            dxError = new DXError(dxErrorProvider);
        }
    }
}